package com.zz.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.nio.file.Path;

@FeignClient(
        value = "Teacher",
        url = "http://127.0.0.1:9304",
        fallbackFactory = ExamControllerFallbackFactory.class)
public interface ExamService {
    @PostMapping(value = "/exam/examlist",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    String forwardFile(@RequestPart("cocosConfigFile") MultipartFile  file);
}
